﻿<%@ Page Title="Ngôi nhà nhỏ - Danh sách tài khoản" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="UserList.aspx.cs" Inherits="Interface.Users.UserList" EnableEventValidation="true" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="le-co-menu">
        <div class="le-co-ti-color">
            <div class="le-co-hi-title"> DANH SÁCH TÀI KHOẢN</div>
        </div>
        <div class="dlQ">
            <asp:ScriptManager ID="scriptManager" runat="server" />
     <asp:UpdatePanel ID="updatePanel" runat="server" UpdateMode="Conditional">
            <ContentTemplate> 
        <asp:GridView ID="gridUsers" runat="server" EnableViewState="true" 
            AllowPaging="True" PageSize = "4" AllowSorting="True"
            AutoGenerateColumns="False" 
            AutoGenerateSelectButton="true" CellPadding="4" DataKeyNames="ID" >                     
            
            <Columns>                                                             
              <asp:TemplateField HeaderText="STT">
              <ItemTemplate>
                        <asp:Label ID="lblSTT" runat="server" Text='<%# Eval("STT") %>' ></asp:Label>
                    </ItemTemplate>                                       
              </asp:TemplateField>
              <asp:TemplateField HeaderText="Tên đăng nhập">
                    <ItemTemplate>
                        <asp:Label ID="lblUserName" runat="server" Text='<%# Eval("UserName") %>' ></asp:Label>
                    </ItemTemplate>                    
              </asp:TemplateField>
              <asp:TemplateField HeaderText="Họ Tên">
                    <ItemTemplate>
                        <asp:Label ID="lblFullName" runat="server" Text='<%# Eval("FullName") %>' ></asp:Label>
                    </ItemTemplate>                    
              </asp:TemplateField>
              <asp:TemplateField HeaderText="Giới tính">
                    <ItemTemplate>
                        <asp:Label ID="lblGender" runat="server" Text='<%# Eval("Gender") %>' ></asp:Label>
                    </ItemTemplate>                                                                
              </asp:TemplateField>
              <asp:TemplateField HeaderText="Loại tài khoản">
                    <ItemTemplate>
                        <asp:Label ID="lblMemberType" runat="server" Text='<%# Eval("MemberType") %>' ></asp:Label>
                    </ItemTemplate>                                                      
              </asp:TemplateField>
     
            </Columns>            
        </asp:GridView>        
        </ContentTemplate>
        </asp:UpdatePanel>    
        </div>
        
    </div>
    
    


</asp:Content>
